/*
 * XML Type:  XFormBox
 * Namespace: http://www.seedwill.com/xul/widget/
 * Java type: com.seedwill.xul.widget.XFormBox
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.widget.impl;
/**
 * An XML XFormBox(@http://www.seedwill.com/xul/widget/).
 *
 * This is a complex type.
 */
public class XFormBoxImpl extends com.seedwill.xul.widget.impl.XAreaImpl implements com.seedwill.xul.widget.XFormBox
{
    private static final long serialVersionUID = 1L;
    
    public XFormBoxImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName FORMNAME$0 = 
        new javax.xml.namespace.QName("", "formName");
    private static final javax.xml.namespace.QName FORMTITLE$2 = 
        new javax.xml.namespace.QName("", "formTitle");
    private static final javax.xml.namespace.QName METHOD$4 = 
        new javax.xml.namespace.QName("", "method");
    private static final javax.xml.namespace.QName ACTION$6 = 
        new javax.xml.namespace.QName("", "action");
    
    
    /**
     * Gets the "formName" element
     */
    public java.lang.String getFormName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FORMNAME$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "formName" element
     */
    public org.apache.xmlbeans.XmlString xgetFormName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FORMNAME$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "formName" element
     */
    public boolean isSetFormName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FORMNAME$0) != 0;
        }
    }
    
    /**
     * Sets the "formName" element
     */
    public void setFormName(java.lang.String formName)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FORMNAME$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FORMNAME$0);
            }
            target.setStringValue(formName);
        }
    }
    
    /**
     * Sets (as xml) the "formName" element
     */
    public void xsetFormName(org.apache.xmlbeans.XmlString formName)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FORMNAME$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(FORMNAME$0);
            }
            target.set(formName);
        }
    }
    
    /**
     * Unsets the "formName" element
     */
    public void unsetFormName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FORMNAME$0, 0);
        }
    }
    
    /**
     * Gets the "formTitle" element
     */
    public java.lang.String getFormTitle()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FORMTITLE$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "formTitle" element
     */
    public org.apache.xmlbeans.XmlString xgetFormTitle()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FORMTITLE$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "formTitle" element
     */
    public boolean isSetFormTitle()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FORMTITLE$2) != 0;
        }
    }
    
    /**
     * Sets the "formTitle" element
     */
    public void setFormTitle(java.lang.String formTitle)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FORMTITLE$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FORMTITLE$2);
            }
            target.setStringValue(formTitle);
        }
    }
    
    /**
     * Sets (as xml) the "formTitle" element
     */
    public void xsetFormTitle(org.apache.xmlbeans.XmlString formTitle)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FORMTITLE$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(FORMTITLE$2);
            }
            target.set(formTitle);
        }
    }
    
    /**
     * Unsets the "formTitle" element
     */
    public void unsetFormTitle()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FORMTITLE$2, 0);
        }
    }
    
    /**
     * Gets the "method" element
     */
    public java.lang.String getMethod()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(METHOD$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "method" element
     */
    public org.apache.xmlbeans.XmlString xgetMethod()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(METHOD$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "method" element
     */
    public boolean isSetMethod()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(METHOD$4) != 0;
        }
    }
    
    /**
     * Sets the "method" element
     */
    public void setMethod(java.lang.String method)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(METHOD$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(METHOD$4);
            }
            target.setStringValue(method);
        }
    }
    
    /**
     * Sets (as xml) the "method" element
     */
    public void xsetMethod(org.apache.xmlbeans.XmlString method)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(METHOD$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(METHOD$4);
            }
            target.set(method);
        }
    }
    
    /**
     * Unsets the "method" element
     */
    public void unsetMethod()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(METHOD$4, 0);
        }
    }
    
    /**
     * Gets the "action" element
     */
    public java.lang.String getAction()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACTION$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "action" element
     */
    public org.apache.xmlbeans.XmlString xgetAction()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACTION$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "action" element
     */
    public boolean isSetAction()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ACTION$6) != 0;
        }
    }
    
    /**
     * Sets the "action" element
     */
    public void setAction(java.lang.String action)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACTION$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACTION$6);
            }
            target.setStringValue(action);
        }
    }
    
    /**
     * Sets (as xml) the "action" element
     */
    public void xsetAction(org.apache.xmlbeans.XmlString action)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACTION$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ACTION$6);
            }
            target.set(action);
        }
    }
    
    /**
     * Unsets the "action" element
     */
    public void unsetAction()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ACTION$6, 0);
        }
    }
}
